<?php 
if($page->getImageObject())
{
	$style = 'display:block; text-align:center; overflow:hidden;';
	switch($sitemap->getViewObject())
	{
		default:
			//$style .= 'width:'.$sitemap->getSetting('ImageListW').'px; height:'.$sitemap->getSetting('ImageListH').'px;';
		?>
		<a style=" <?php echo $style; ?> " href="<?php echo $page->getLink(); ?>">
			<img title="<?php echo $page->getTitle(); ?>" alt="<?php echo $page->getTitle().' '.$txt->getWord('image'); ?>" src="<?php echo $page->getImageObject()->getLink($sitemap->getSetting('ImageListW'), $sitemap->getSetting('ImageListH')); ?>" />
		<?php
		break;
	}
	echo '</a>';
} 
?>